package com.sdry.mapper.zc;

import java.util.List;

import com.sdry.model.zc.ZcLeakHuntingEntity;
import com.sdry.model.zc.ZcLeakHuntingTemporaryEntity;
import com.sdry.model.zc.ZcNumberedEntity;
import com.sdry.model.zc.ZcProductTestEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.model.zc.ZcTestEntity;
/**
 * 
 * @ClassName:    ZcLenkHuntingMapper   
 * @Description:  检漏记录
 * @Author:       zc   
 * @CreateDate:   2018年10月8日 下午5:29:59   
 * @Version:      v1.0
 */
public interface ZcLeakHuntingMapper {
	/**
	 * 录入检漏记录
	 * @param zcLeakHuntingEntity
	 * @return
	 */
	public int insertLeakHunting(ZcLeakHuntingEntity zcLeakHuntingEntity);
	/**
	 * 将合格降级改变订单状态
	 * @param zcTestEntity
	 * @return
	 */
	public int updateProductStatus(ZcTestEntity zcTestEntity);
	/**
	 * 将异常处置推送到不合格处置
	 * @param zcTestEntity
	 * @return
	 */
	public int insertProductToTest(ZcTestEntity zcTestEntity);
	/**
	 * 查找今日检漏记录
	 * @param zcLeakHuntingEntity
	 * @return
	 */
	
	public List<ZcLeakHuntingEntity> selectTodayLogList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 查找今日检漏记录数量
	 * @param zcLeakHuntingEntity
	 * @return
	 */
	public int countTodayLogList(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 通过条码查询组件数点信息
	 * @param productCode
	 * @return
	 */
	public List<ZcNumberedEntity> selectNumberedInfoByCode(String productCode);
	/**
	 * 通过条码查询组件历史数点信息
	 * @param productCode
	 * @return
	 */
	public List<ZcNumberedEntity> selectNumberedInfoLogByCode(String productCode);
	/**
	 * 通过条码查询组件N次检漏A、B面总数
	 * @param productCode
	 * @return
	 */
	public ZcLeakHuntingEntity selectLeakHuntingSumN(String productCode);
	/**
	 * 保存临时检漏数据
	 * @param zcLeakHuntingTemporaryEntity
	 * @return
	 */
	public int saveLeakHunting(ZcLeakHuntingTemporaryEntity zcLeakHuntingTemporaryEntity);
	/**
	 * 查找堵漏临时表
	 * @param code
	 * @return
	 */
	public ZcLeakHuntingTemporaryEntity selectLeakHuntingTabByCode(String code);
	/**
	 * 查询检漏日记录
	 * @param zcQueryCriteria
	 * @return
	 */
	public List<ZcLeakHuntingEntity> selectTodayLogListCount(ZcQueryCriteria zcQueryCriteria);
	/**
	 * 查询检漏日记录数
	 * @param zcQueryCriteria
	 * @return
	 */
	public int countTodayLogListCount(ZcQueryCriteria zcQueryCriteria);
}
